import request from '@/utils/request'
//开课管理接口
export function eduTeachingCourseQuery(data) {
  //分页列表
  return request({
    method: 'get',
    url: '/eduTeachingCourse/query',
    params: data,
  })
}

export function eduTeachingCourseQueryById(id) {
  //查询
  return request({
    method: 'get',
    url: '/eduTeachingCourse/query/' + id,
  })
}

export function eduTeachingCourseAdd(data) {
  //添加
  return request({
    method: 'post',
    url: '/eduTeachingCourse/add',
    data,
  })
}

export function eduTeachingCourseDelete(id) {
  //删除
  return request({
    method: 'get',
    url: '/eduTeachingCourse/delete/' + id,
  })
}

export function eduTeachingCourseUpdate(data) {
  //修改
  return request({
    method: 'post',
    url: '/eduTeachingCourse/update',
    data,
  })
}
